package com.hll.basic;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/** Date:2021/7/7 Author:ybc Description: */
@Controller
@RequestMapping("/view")
public class ViewController {

  @RequestMapping("/testThymeleafView")
  public String testThymeleafView() {
    return "success";
  }

  /*forward---不变url*/
  @RequestMapping("/testForward")
  public String testForward() {
    return "forward:/view/testThymeleafView";
  }

  /*redirect-变url*/
  @RequestMapping("/testRedirect")
  public String testRedirect() {
    return "redirect:/view/testThymeleafView";
  }
}
